import { IsString,IsNotEmpty, MinLength, MaxLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateUserDto {

  @IsNotEmpty({message:'用户名不能为空'})
  userName: string;

  @IsNotEmpty({message:'密码不能为空'})
  @MinLength(6,{message:'密码最少6位数'})
  @MaxLength(16,{message:'密码最多16位数'})
  password: string;

}




